﻿namespace Jsl.FxCop
{
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    [TestClass]
    public class TestMethodVariableUsage
    {
        [TestMethod]
        public void Method_property_returns_method_from_contructor()
        {
            var method = NodeHelper.GetMethod(() => 5);
            var usage = new MethodVariableUsage(method);

            AssertEx.That(() => object.ReferenceEquals(method, usage.Method));
        }
    }
}